# -*- coding: utf-8 -*-
import requests
from operator import itemgetter

# 由于这个网址已无法访问，此处不在做了，解析json数据格式，大同小异
url = 'https://hacker-news.firebaseio.com/v0/topstories.json'
r = requests.get(url)
print('Status code:', r.status_code)
